package startup;

import entity.BaseTank;
import entity.Direction;
import entity.MoveSpeed;
import entity.Position;
import entity.Tank;

public class StartUp {

	private static final StartUp START = new StartUp();
	
	private StartUp() {}
	
	public static StartUp getInstance() {
		return START;
	}
	
	public Tank newStartTank() {
		BaseTank tank = new BaseTank(10);
		tank.setAlive(true);
		tank.setCurrentPosition(new Position(0, 0));
		tank.setDirection(Direction.UP);
		tank.setMove(false);
		tank.setName("firstTank");
		tank.setSpeed(new MoveSpeed(1,10));
		tank.setBulletSpeed(new MoveSpeed(5,10));
		return tank;
	}
	
	public void start() {
//		Tank tank = newStartTank();
//		tank.move();
//		tank.turnUp();
//		for(int i=0;i<10;i++) {
//			tank.move();
//		}
//		tank.turnRight();
//		for(int i=0;i<10;i++) {
//			tank.move();
//		}
//		tank.shoot();
	}
	
	public static void main(String[] args) {
		StartUp.getInstance().start();
	}
	
}
